package cn.hxzy.entity;

import java.io.Serializable;
import java.util.Date;


public class Work extends WorkExt implements Serializable {

  private Integer id;
  private String name;
  private String workValue;
  private Date creatTime;
  private Integer userId;
  private String workImage;

  public Work() {
  }

  public Work(String name,  String workValue, Integer userId,String userName) {
    this.name = name;
    this.workValue = workValue;
    this.userId = userId;
    User user=new User();
    user.setId(userId);
    user.setName(userName);
    this.setUser(user);
  }

  public String getWorkImage() {
    return workImage;
  }

  public void setWorkImage(String workImage) {
    this.workImage = workImage;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getWorkValue() {
    return workValue;
  }

  public void setWorkValue(String workValue) {
    this.workValue = workValue;
  }


  public Date getCreatTime() {
    return creatTime;
  }

  public void setCreatTime(Date creatTime) {
    this.creatTime = creatTime;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  @Override
  public String toString() {
    return "Work{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", workValue='" + workValue + '\'' +
            ", creatTime=" + creatTime +
            ", user=" + getUser() +
            '}';
  }
}
